package com.woniuxy.Listener;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * @auther linke
 * @create 2021-10-25 11:49
 * 产生session对象时启动
 */
@WebListener
public class MyHttpSessionListener implements HttpSessionListener {

    @Override
    public void sessionCreated(HttpSessionEvent se) {
        System.out.println("MyServletSessionListener...sessionCreated...监听启动");



    }

    @Override
    public void sessionDestroyed(HttpSessionEvent se) {
        System.out.println("MyServletSessionListener...sessionDestroyed...监听销毁");
    }
}
